 //插入表情图片
 
export default function insertEmoji(emoji) {
 ;
      const selection = window.getSelection();
      const range = selection.getRangeAt(0);
      range.insertNode(document.createTextNode(emoji));
      range.collapse(false);
      selection.removeAllRanges();
      selection.addRange(range);
    }